home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10879 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.urz.uni-heidelberg.de!usenet
  2. From: Stefan Reichling <steve@indi.aci.uni-heidelberg.de>
  3. Newsgroups: comp.lang.c
  4. Subject: Permutation
  5. Date: Wed, 20 Mar 1996 17:23:34 +0100
  6. Organization: University of Heidelberg, Germany
  7. Message-ID: <31503106.ABD@indi.aci.uni-heidelberg.de>
  8. NNTP-Posting-Host: mondo.aci.uni-heidelberg.de
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0 (X11; I; IRIX 5.3 IP22)
  13.  
  14. Hi all,
  15.  
  16. my problem is how to determine all possible permutations between two
  17. numberd arrays.
  18.  
  19. exmp: first array: 1 2 3 4
  20.       second array: 1 2 3 4
  21.  
  22.       first permut: 1 2 3 4
  23.                     2 1 3 4
  24.  
  25.       ect.
  26.  
  27. I know that the maximum number of possible permutations is n!
  28. How can I determine all possible array pairs ?
  29.  
  30. thank's
  31.  
  32. steve
  33. -- 
  34. +---------------------------------------------------------------------+
  35. |  Stefan Reichling                                                   |
  36. |                                     Anorganisch-Chemisches Instiut  |
  37. |  Tel +49-6221-548565                   Universitaet Heidelberg      |
  38. |  Fax +49-6221-545707                      69120 Heidelberg          |
  39. |  e-mail: steve@indi.aci.uni-heidelberg.de      Germany              | 
  40. |  www: http://ix.urz.uni-heidelberg.de/~il1                          |
  41. +---------------------------------------------------------------------+
  42.